package com.yuwei.convert;

import org.springframework.core.convert.converter.Converter;

public class String2BoolConvert implements Converter<String,Boolean> {
    @Override
    public Boolean convert(String s) {
        System.out.println("进入类型转换器，输入参数:"+s);
        if("true".equals(s.toLowerCase())){
            return true;
        }
        return false;
    }
}
